fixed illegal button state
fixed wrong dialog window dimensions