allowing better initialization of view
cleaning code