Application now copes better with AJAX requests