Add namespace to event handler function.