documented and comment on main view controller