set-up base template for index