Introduce PromptDialog and ConfirmDialog to solve #136
Convert remaining instances of prompt() to PromptDialog
Closure typo in refactor PromptDialog usage