added the ajax function for the blocklist