separating comment template and refactoring the html