Add event handlers to the vnc client