added swipe gesture in code