moved loading animation to style class