removed beforeRender