manage active class of button clicks