Added logic for future ajax id check