Refactor email attendees popover into template