Makes view, edit, delete of notes work. Fixes #47