Simplified code in add comment template