Added loading spinner for ajax requests