update routes and main view