Fix problem with automatic hiding setting storage flag to 0
Fix #13: Listen to changes to the notes and update visibility if needed.