moved toastr out of apiService