Added Terminal Connect and onHold functionality
fixed Terminal onHold bug