sync changes between plugin and page