modified gui class