add model.js and update users template