corrected text and styles
refactored UI to simplify navigation and fixed adaptation to screen size
1. refactoring: created base dialog class with common functionality
2. added back button handling