Handled add and remove from children array but edit not working properly