Added the changeListener and some modifications to the gui.