adds TapGestureRecognizer and PanGestureRecognizer