var app = angular.module('soundboard', ['ionic']);

app.run(function ($ionicPlatform) {
	$ionicPlatform.ready(function () {
		// Hide the accessory bar by default (remove this to show the accessory bar above the keyboard
		// for form inputs)
		if (window.cordova && window.cordova.plugins.Keyboard) {
			cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);
		}
		if (window.StatusBar) {
			StatusBar.styleDefault();
		}
	});
});




@@ -428,10 +428,1091 @@
 );%0A%7D);%0A%0A
+app.controller('SoundBoardCtrl', function ($scope) %7B%0A%0A%09$scope.media = null;%0A%0A%09$scope.model = %7B%0A%09%09showDelete: false,%0A%09%09showMove: false,%0A%09%09sounds: %5B%0A%09%09%09%7B%0A%09%09%09%09'title': 'Cow',%0A%09%09%09%09'image': 'img/animals/cow-icon.png',%0A%09%09%09%09'desc': 'Mooo',%0A%09%09%09%09'file': '/sounds/cow.mp3'%0A%09%09%09%7D,%0A%09%09%09%7B%0A%09%09%09%09'title': 'Dolphin',%0A%09%09%09%09'image': 'img/animals/dolphin-icon.png',%0A%09%09%09%09'desc': 'Whistle',%0A%09%09%09%09'file': '/sounds/dolphin.mp3'%0A%09%09%09%7D,%0A%09%09%09%7B%0A%09%09%09%09'title': 'Frog',%0A%09%09%09%09'image': 'img/animals/frog-icon.png',%0A%09%09%09%09'desc': 'Croak',%0A%09%09%09%09'file': '/sounds/frog.mp3'%0A%09%09%09%7D,%0A%09%09%09%7B%0A%09%09%09%09'title': 'Bird',%0A%09%09%09%09'image': 'img/animals/bird-icon.png',%0A%09%09%09%09'desc': 'Chirp',%0A%09%09%09%09'file': '/sounds/bird.mp3'%0A%09%09%09%7D,%0A%09%09%09%7B%0A%09%09%09%09'title': 'Pig',%0A%09%09%09%09'image': 'img/animals/pig-icon.png',%0A%09%09%09%09'desc': 'Oink',%0A%09%09%09%09'file': '/sounds/pig.mp3'%0A%09%09%09%7D,%0A%09%09%09%7B%0A%09%09%09%09'title': 'Dog',%0A%09%09%09%09'image': 'img/animals/puppy-icon.png',%0A%09%09%09%09'desc': 'Bark',%0A%09%09%09%09'file': '/sounds/dog.mp3'%0A%09%09%09%7D,%0A%09%09%09%7B%0A%09%09%09%09'title': 'Cat',%0A%09%09%09%09'image': 'img/animals/black-cat-icon.png',%0A%09%09%09%09'desc': 'Meow',%0A%09%09%09%09'file': '/sounds/cat.mp3'%0A%09%09%09%7D%0A%09%09%5D%0A%09%7D;%0A%0A%09$scope.play = function (sound) %7B%0A%09%7D;%0A%7D);
 %0A%0A

add controller and an object literal for model