Do we need to pass the visibility around? Can't we just take the permissions widget visibility and pass it into the createLink function at the end?