cleaned GUI code.