This function isn't rendering anything. It is just inserting.  Consider renaming it.