ajax request counter added for final switchTo