Use ng-show and ng-hide for toggling other elements
Remove the need for $scope.render()