before detailviewcontroll to viewcontroller