implement events html rendering