Added 'preRender' event triggering before page content is changed.