Refined logic for note visibility