Implement portlet preferences save during action
Test that window supports the mode before using preview, otherwise use view