Hopfully fixed up Button code.

Untested, but it didn't crash anything.

Also fixed a minor issue with snippet rendering.