Extract update method to controller