adding mark-as-dupe functionality