refactor the ui to get shareable uris