repository view refactors