Added a tab for history. some small error handling.