fixed ajax bug on home page