Fixed some dialogue fragment issues.
Refactored dialogue fragment code into a base class.
Moved add thread listener to view.

Option menu clicks now triggers events.