change routes and fix views