added functionality for preloading assessts and added a background