moved routes to route file