comments controller refactoring