add log in view controller