adding class for hidden while published