change the viewdetail