This should probably be done on setElement, not render? And removed if the element is changed?