A few history fixes

* Show spinner while history is loading
* Only load history if needed (fixed)

I did not notice any other issues yet.