updated js for claim unclaim and delete