set episode state