Add methods for update and cancel