renderView function added in functions.js