set things for edit view