modified showNotConnectedPopupIfNotConnected
to only show if dialog is not showing already