hopefully fixed app being empty after being minimized for a while
changed update behavior of the app
added a alertdialog for when trying to update or download materials without internet connection