add the loading effect