added save functionality (still need to style save button), added $scope.apply
to ensure mode is refreshed on upload of design