fixed history page, revised schema