replaced deprecated window._content with window.content