basic code to setup view controller and views