updating the UI when we are indexing.....important