Edited route to main pages