finish the parent add leave feature