fix few bugs in NoteActivity