setting alert message to tell user that link was clicked