Improved behaviour of maximized dialog