added edit pages and click events for edit pages.