Made default-page use function instead of object