state based template