add loadbar directive