Refactored the SerialConnectionPanel