view module changed to return an instance of View class with create function