update the option object when options are changed dynamically
Merge pull request #62 from hilnius/master

update the option object when options are changed dynamically