configured route and view for / and index