adding loading indicator