call refreshOptions in the end of the content changed loop #25