Revised to allow plugin to help each form maintain their initial states instead of a single plugin-bound state.