added swipe & tap functions

todo: refactoring