toggle private/public galleries, and fix 404/500.html