added logic for latest logs, added template for timelookup, modified index template