adding a couple things to the index and detail template