Started work on history view as well as bugs

Better error handling
Tokens weren't refreshing