Handle sensitiveness of the restore and delete toolbar buttons