removing unnecessary passing around of view