SWC-1591: show and hide loading while processing