add conditional class