switch thing for draft/publish