merged create and edit views