Process comments widget refactoring