added id and user in popup.js