fix save model in detailview