linked eventhandler, bugfixing, method moved to server because of cross-host-restrictions