added ability to mark ajax request as inactive to prevent the count ffrom going up