Settings view logic. History view base logic. Date formatting