add update action and test