make the dialog only has one buttun(OK buttun)