added functionality to add a route