add loading block directive