Fixes #6152 Adds loading gif to modal dialog boxes (may need to update timing on both)