clean up button handling.