Refactored tutorlib/helpdialog
Refactored all dialogs to inherit from Dialog

Extracted common logic to the Dialog class.