added a nice loading directive