add action to link name click event with a new state