Fixed bug of duplicating last Node, added options to copy loc_ref in confirmation dialog