Making event listener registering explicit for containers