Fix ID generation and tweak index page