updated permissions such as tab and started working with popup.js