Add new ajax function to make formatting correct