dpi-awareness related fixes
dialogs: started refactoring towards MVC ppattern