Added the ability to reset portlet mode and window states to VIEW and NORMAL in the case of page navigation.