changed UI for new and edit page