updates the home template