adding alert when swiping