updating the edit pages