implemented swipe view