refactored so that hidden jsp flags are now set in the model, not in the
jsp