Added listener for console log component