begin code for OptionsBox