added a cancel button to edit view