Replaced deprecated getContainerElement calls with getContentElement