prevent duplicate ajax requests