making defaults stateless in view