Implemented segmented control for notesViewController