Made a generic controller for add and delete threads.

We now have a generic ui event that is passed into such a controller to
control it.

Need to do the test for the new controller now.