update action is not working