greatly improved the swipe-to-menu behavior