update swap pos then do action