Added altered toggleVisiblility and toggleDisplay, working on showElement.