refactoring routes declaration