fixed various bug on detailviewcontroller