changing route to pages