fix errors, impelement FeatureController.cpp