refactor the comments controller