Set event visibility properly based on hidden_category_group_flag