Removed debug prints and modified swipe gesture code