moved index into template folder