fixed ajax issues