cancel now resets buttons correctly