add extra check and center loading bar