moving business logic from routes to controller