Added saving checked states