removed swipehandler from code