buttoonw, cleanup