Added index building to the GUI with activity indicator