Added the edit page functions