added name attribute to screenstates