Add loading class to center loading animation