Fixed Modify crashes, simplified thread logic.

Fixed an out-of-bounds error with Modify, which in turn cleaned up the
UI. Reduced logic needed for checking thread existence by removing its
reference from the dictionary when finished.