update loading directive and styles