added 'preRender' method

We should remove this