cleaned up GUI behavior.
problem with serial connection.