update method in class GUIart.java