changed var routes to index