keeping checbox checked on update