fix all of the final ajax bugs