added X-Requested-With header to the ajax request