fixing the swipe menu