comment block refactored and used the same code for sidebar comments