added support for abort the edit