json for details updating when dropping and another details is before it