Using actor to handle dialog index task