finished new and edit view pages