make sure we update the path UI when inserting elements