fixed hide/reveal button's functionality that was broken