modify View
- view const -> define
- modify logging