adding loading indicator view and logic for displaying it