STY: Removed unecessary lines from main window initialization