Switch to tab when a note is already opened, instead of opening the note in a new tab