Add a spinner for ajax calls