added route to index and view