implement autocreation of the edit-view for a model