set threshold via options UI