remove dead code from detailviewcontroller