we shouldn't have use alerts from the controls, instead write to console using log.js