hook to override ajax call