added the updateView function