fixed (sort of) loader code and started using it in main.dart. not the best code ever.