Add routes and support for back button