Updates to ajax wrapper