Add bugs.dirty
Add bugs.empty, check for empty and unsaved