separated other dialogs into different module, some refactoring and commenting