Permissions and Sharing UI finished

still one hack that needs to be fixed but otherwise working