added some mobile code to swipes