added support for attributed title and button titles.