Added a cancel button and esc-event for cancel the change