ensure maximize button is hidden when minimizing
fix an issue where maximized window shows minimized
Fix title cursor when maximized
fixed cursor when minimized
fix an issue where modal behaves weird when minimized and closed
use tabs not spaces
also ensure this works on maximize