set loading.hide only when all incoming requests are finisched