Revert Changes
Changes indentation
added swipe event code