update view for index