modified the ajax pagenavi and rand_pic