move notify function out of loadmainTheme