rewriting the GUINotes.java