clean up object layer
automatically generate unique element ids