XXX this is a hack around the viewmode issue. These will not be viewmodes in the refactoring banch