added views for new and edit