refactor remote data updates out of graphing.js