added the return statement and made NotesPanel extend JDialog