updated LogsCtrl to account for empty date