updates loading indicator