refactoring of main dialog
small refactorings, method for retreiving selected methods, extract methods after ok