Refactored index handler to take args as constructor parameters, not OutputPage parameters.