fixed data.php; better toastr messages