Better way to remove active class from buttons