Added AJAX calls to get data