remove not used parts of the index module
apply style guide
escape template variables

unescaped ones can lead to xss