Added whole window creation to invokeLater