Still work needing to be done on assigning the main window