Add settings to Menu clicks

Update generate.py so it force rewrites the graph when the number
of headers change.

Change-Id: I2d6263cdc9a451b43fffa198e18019988f64b14f