Null button exception solved. Xml won't save unconfigured buttons.