getting links to go to right views