Some fiddling with messages and buttons