ajax page load index fix