modify new and edit