new version with AJAX working.