nding && !ctrl.removed && setTimeout(ctrl.refreshState, 5000);
			});
		};

		ctrl.reload = function() {
			ctrl.refresh();
			ctrl.refreshState();
		};

		ctrl.operation = function(btn, row, grid) {
			var name = btn.prop('name');
			switch (name) {
				case 'remove':
					SETTER('confirm', 'show', '@(Are you sure you want to remove selected newsletter?)', ['"trash"@(Remove)', '@(No)'], function(index) {
						if (index)
							return;
						SETTER('loading', 'show', 'trash-o');
						AJAX('DELETE [url]api