attempting to add logic to active class