update method and add View