moved GUI creation to a separate Event Dispatch Thread