add update action to controller