Add Main Window to the main file