Switch between text and link mode
Improve button link cleanup