Added loading function & placeholder animated gif