beforeFirstFrameRender