add State and Template