add ajax for library update