update loader class and set style config