Rowdetail refactoring