Change state by adding an active class