Use is-client module to determine environment in base controller
Extend view events