removed enable/disable for wxID_CLOSE
added global flag