fixed the page to show routes based on user click