Rewritten swipe to dismiss