Added an update Gui thread