Updated ajax handler to reflect previous changes.