Add swipe listener for main frame