this function and the one below are very redundant. Why not `$scope.setNicklistVisibility = function(show) { ... }`?