add update method to routes controller