how to make new model and edit existing