threading, changes to gui