fixes options.js event handlers