add href and text attributes to action