added switches to select AJAX style