implemented loaders so that data can be loaded asynchronously. This
helps improve loading times for the app.