Added condition for hide block