Added toggle switch for text element.