build complete interfaces for popup.js