rewrite: re-sync changes on page reload