add confirm.js and update view