Remove unused function
Extract dialog code in to a module
Merge pull request #57 from brandonbloom/dialogs

Extract dialog code in to a module