restrict swipe to home