popup select funcs moved to base.js