callback for component created event