adding ajax type option