Add spinner to ajax call