functionality to delete rows