Added custom adapter and check dialog in notes_edit