fix routes and index