fix: Restore the default properties of dialog window so that the max and min buttons can be customized