ProcessComments widget refactoring