commentcontroller refactoring