* updates the way the context is managed and passed into the tempalte