small dialog window refactoring
fixed keyboard shortcuts
changed validation