added grid thread count initialization to force initial update, fixed ochrebox actions enable/disable on last type close