set up basic index and template