added gesture detector