show/hide badge script