adding ajax support