added another place to call updateviews