Cleaned up some code
Added a spinning icon when a page is loading