generator style for views

- remove no using code
- generator style for views