Set the gestures and the rules