Now the current dictionary is changed through AJAX