refactoring callbacks
Clear history by quota before add new item
Rewrite option save script: use change event for checkboxes and print success message if changed.