some more view template changes to try to deal with empty collections