added autosave feature, checkboxes are now saved too