refactor comments controller