create_tk_window();#this was after the next line threads->new(\&update_thread)->detach;