Better error management, fancier history page

Signed-off-by: Timothy Gu <timothygu99@gmail.com>