post routes and index page