add loading directive