modify index and template