edit and cancel clientside