added ajax loading spinner second attempt