added edit routes and edit pages