move loading removal into main js