added gesture support. Pan, swipe and tap