Added stop selecting form and some logic on popup.js