Updated index_route. Cant call functions defined in a route