add ajax for borrowing tool