code for swiping the cell in a table