program gui code.