routing working on main page