added event handler to server, event method to spa events service