Changed so that view willb e updated now too