adds edit for pages