now creates GUI thread