Added changed to improve view() method