refactor routes to module