first step at rewriting the button code - nothing works, but it compiles