Implemented PropertyChangeListener in Controller.java and propertyChange method.