added classes and styles, and replaced entry html creation with html string templates