refactoring xib files