added events handler to server, updated events service in spa