Revert "Revert "add loading bar""

This reverts commit 5be701a41b19aabbf6827f1c427726d713293eb7.