moved event handling from ToolMediator to ToolProxy