return active buttons in nicer format
fix restore state on search clear