fixed event handler binding for categories