Adding Duplicate and Edit Functionality