Implemented AJAX call on button.