Added sync up between popup.js and update.js (in viz)