refactor saving podcast and episode states