Soft keyboard automatically opens in dialogs with editText
Code refactoring