Added code for categories and event details