Added cookies for checkboxes
fixed minor typo in comment
restores from cookies except for tab state