Create folder for dialogs
Refactor shared code into library in separate github repo