Added basic design for ThreadAdapter.
Added basic page switching.