Added some template inheritance. Added some styles.