added CCFormCtrl. (and some refactoring)