Added threads for usergui(WIP)