Added a hideAll() function that sets all elements to hidden.