moved the share button text construction into a separate function