add loading indicator directive