Avoid following the link when the button is clicked

Avoid following the link when the button is clicked