change edit view and set detail view