handle render complete event