creating modal to choose permissions