new view function
new command generate