Added delete functionality to tables view mode