wrap views to a CMD module
Revert "wrap views to a CMD module"

This reverts commit 7e9d8e837b4e7c081ce6043025f69e8b71103e2f.
wrap non-CMD module with `define` signature