replaced MainForm update thread with new ThreadWorker class