cleaning up the loading modal