Added init code, skeleton of main window