set or reset options with the setOptions event