Added view and edit note pages and implemented those functions