story page refactor