modified main view controller