better display of loading indicator when pages don't load