saving state for buttons, cleanup