code cleanup / make sure test-button on example page works