added visibility and category to events