It looks like `showVisibility`, `showShare` and `showOverview` can be consolidated into 1 function

```
var showPanel = function(name) {
    $('.modal-body > div', $rootel).hide();
    $('#manageaccess-' + name, $rootel).show();
    $('.modal-footer > div', $rootel).hide();
    $('#manageaccess-' + name + '-footer', $rootel).show();
}
```