implemented the ajax link