dialog now inherits from QWidget, instead of QDialog. Window no longer hides when inactive.