refactor route method to manage_route