Implement method to dedect xhr request