fix edit button on pop-up
better update script