refractored context to get EventListener, Refractored component Registry