Fixed a few warnings and added a loding screen