Implement AJAX to note duplication