moved index code from index.tpl to its own file