refactor cassandra pages