add ready event emit