Added midnight reset. Add historical tasks page