Added delete functionality to history tableview