Refactored delete controller.

Now takes in an on click listener from the list threads module,
which then waits upon that, to then delete the thread as it sees fit.