the fact that window was the config and buttons are actual objects took some figuring, but it's probably fine.