Trying out the ajax call for the next page