Switched element to Object in preRender

Since it will need data now, for ids.