Refactor input/output handlers and ensure observer pattern works properly to update I/O connections.