Added swiping functionality