properly animating loader