listen to initialize event