added testing gui code