setting up route and index