Added onRender function to tab objects