Finalized showElement, and added hideElement.