code tidy.
read to split the templates.
code tidy.