fix routes and views