Add 'edit team permissions' functionality to modal