adding the close icon to the links