updated device registration insertion ajax call