refactor SentPage handler into separate module