delete some same code in detailViewController