Added method for Spektral.hideElement and Spektral.showElement