added cancel button to edit dialog