add an else clause to the items.index template