Add code in LayoutBase to set a viewShowing flag on the view to true or false as appropriate and more fix the date code in modelApp test.