add loading and apply CSS style