code change to present log in view controller