add title and showAsAction properties to addShareAction