Alter this to event.target to fix issues when a user clicks on the restore link.

Modification made to replace this with the correct reference to the link clicked.