finally got drag and drop updating the object and working properly