added cancel button to edit pages