adds index page and nested routes for page an post