updating element-invisible class