Move mainwindow code to constructor.
Added Hide title bar option to app properties