updated view, and generate, and generateCode