add loading when ajax in progress