new and edit working