changed .empty() to .hide() for loading bars