added swipe event function to app functions (used in a bother recent project)