updated format for edit and new pages