implement home template