<P> The Janata Party won a majority in 1977 and formed a government with Morarji Desai as Prime Minister . The former Jana Sangh contributed the largest tally to the Janata Party's parliamentary contingent, with 93 seats or 31% of its strength . Vajpayee, previously the leader of the Jana Sangh, was appointed the Minister of External Affairs . </P> <P> The national leadership of the former Jana Sangh consciously renounced its identity, and attempted to integrate with the political culture of the Janata Party, based on Gandhian and Hindu traditionalist principles . According to Christophe Jaffrelot, this proved to be an impossible assimilation . The state and local levels of the Jana Sangh remained relatively unchanged, retaining a strong association with the RSS, which did not sit well with the moderate centre - right constituents of the Party . Violence between Hindus and Muslims increased sharply during the years that the Janata Party formed the government, with former Jana Sangha members being implicated in the riots at Aligarh and Jamshedpur in 1978--79 . The other major constituents of the Janata Party demanded that the Jana Sangh should break from the RSS, which the Jana Sangh refused to do . Eventually, a fragment of the Janata Party broke off to form the Janata Party (Secular). The Morarji Desai government was reduced to a minority in the Parliament, forcing its resignation . Following a brief period of coalition rule, general elections were held in 1980, in which the Janata Party fared poorly, winning only 31 seats . In April 1980, shortly after the elections, the National Executive Council of the Janata Party banned its members from being' dual members' of party and the RSS . In response, the former Jana Sangh members left to create a new political party, known as the Bharatiya Janata Party . </P> <P> Although the newly formed BJP was technically distinct from the Jana Sangh, the bulk of its rank and file were identical to its predecessor, with Vajpayee being its first president . Historian Ramachandra Guha writes that the early 1980s were marked by a wave of violence between Hindus and Muslims . The BJP initially moderated the Hindu nationalist stance of its predecessor the Jana Sangh to gain a wider appeal, emphasising its links to the Janata Party and the ideology of Gandhian Socialism . This was unsuccessful, as it won only two Lok Sabha seats in the elections of 1984 . The assassination of Indira Gandhi a few months earlier resulted in a wave of support for the Congress which won a record tally of 403 seats, contributing to the low number for the BJP . </P> <P> The failure of Vajpayee's moderate strategy led to a shift in the ideology of the party toward a policy of more hardline Hindu nationalism . In 1984, Advani was appointed president of the party, and under him it became the political voice of the Ram Janmabhoomi movement . In the early 1980s, the Vishwa Hindu Parishad (VHP) began a campaign for the construction of a temple dedicated to the Hindu deity Rama at the site of the Babri mosque in Ayodhya . The mosque had been constructed by the Mughal Emperor Babur in 1527 . There is a dispute about whether a temple once stood there . The agitation was on the basis of the belief that the site was the birthplace of Rama, and that a temple had been demolished to construct the mosque . The BJP threw its support behind this campaign, and made it a part of their election platform . It won 86 Lok Sabha seats in 1989, a tally which made its support crucial to the National Front government of V.P. Singh . </P>

Who became the first president of the bharti janta party when it was formally established