SwingWorker: moved GUI related codes outside of doinbackground