[2] Historians found that the current temple was a Buddhist monastery known as Kandarika Vihara.
This image was replaced by the King Kundvarma of the Alupa dynasty, who was a devotee of Shiva.
Historians concluded that the vihara was originally a centre of the cult of the bodhisattva Manjusri.
[citation needed] This particular doctrine opened the doors for Tantric religion.
[3] According to the mythological sources, Pandavas stayed here during their exile in the Mahabharata period.