Simplified at text as button and move the complicated version to addTextAsCustomizedButton()