add loading icon during requests