Update and cancel actions are updated and test cases are added