How to change the view generation mode?