changes to mainView