added gestures to turn flash on and off