moving swipe setup to externam file