Refactor backend so that one page holds entire thread