Moved manipulation of #text_container into text_container object