					data.reference = response.id + '';

					SETTER('loading', 'show');
					AJAX('POST [url]api/widgets/', data, function(response) {
						SETTER('loading', 'hide', 1000);
						if (response.success) {
							el.aclass('widgetextinstalled');
							SETTER('snackbar', 'success', '@(Widget <b>{0}</b> has been imported successfully.)'.format(data.name));
							ctrl.refresh();
						}
					});
				});
			});

		};
	});

	Tangular.register('widgetsinstalled', function(value) {
		return widgets.grid.items.fin