added events on options

added events on options