Handle events on client