fixing a bit of html and adding in missing $scope