added changeView method