hacky version of checkbox state recall