bit of a hacky fix for loading dialog box rotation bringing down the whole application