add permissions management to modal