updating View class