Pass the corresponding category to the event