ensure state exists for the template to render