add mainwindow icon and main method