Add listener for http event