updated test GUI code