adds loading indicator