swipe functionality

error fix