add support to state between templates