added swipe left and swipe right support.