Also the preview state is now kept between panel loads. We also use a redraw function to update appearance based on the state.
Add extra preview-mode selector to the CMS actions so we can show something when the preview is closed (and with it all options are not visible). Thanks @mateusz, @clarkepaul and @robert-h-curry for contributing.