added loading spinners and auto refresh