change functionality to render into a passed el.