included helper to format date and updated views.