adding gesture detection