Added basic AJAX interactions.