readded swipe functionality