hooking up browser < - > server events