add method to update route