improve setting for object id

and add a toggle for changing the objects in map editor