mostly finished refactoring detail view controllers