added loading indicator for batch and invoice