add handlers for OptionsTab.js