fix minor bugs and add a ajax simultainious request counter