Raise the mainwindow when it is enabled