Add common.js and dialog feature