move pagedemo to new class