not sure why the view does not update