modified js files and added model functions accordingly