AJAX functionality is now working. Now going to bind to the buttons.