finally fixed ajax issues! yay!