fixing back button bug when clicking on link from main site.