minor improvement on enable-disable of edit variables