Add gesture detection