error handling is broken (todo: fix) but added the pages display page