update to background.js