refactor view check
Merge branch 'master' of github.com:StratusLab/cimi