Trying to make the panel respond to swipe