add support for automatic collection listing on home page and error
pages