contacts view controller refactoring