options window mouseup code