refactor ensuring page has sharing token