Edit function , Relations Duplicate Select , remove unused files

Edit function , Relations Duplicate Select , remove unused files