merged (not in the git sense of the word) my thread stuff and your UI
stuff and tried to get rid of most of the comiler errors. haven't tested
it yet.