prevent ajax call from double execution