add routes and index file