Make new page and edit page functional.