add afterCreated event