negative tiles count bug fixed, some Id attributes added