var $name = {
	control: document.getElementById('my-dialog-$name'),
	show: function() {
		var dialog = document.getElementById('my-dialog-$name');

		if (dialog) {
			dialog.show();
		} else {
			ons.createElement('dialog-$name.html', { append: true })
			.then(function(dialog) {
				dialog.show();
			});
		}
	},

	hide: function() {
		document
			.getElementById('my-dialog-$name')
			.hide();
	}
};
