connect settings to popup.js functions