adding onStart event to the client