add conditional before add active class to body