add conditional active class