what about we move this method in page.py to remove duplication?