wrote edit/update pages