view refactors