moved publishFlashData() before preRender() when processing a page method on controller.