fix ticket #3149 add loading spinner