Add styling for dialogs on small screens
fix tests
Extracted dialog controllers, added tests