fixes on GUI and TDNN logic