Changed the loading to happen when the application loads (rather from the activities onCreate)