update popup script