created more robust loading indicator