Clean up code and fixed minor bugs

- fixed data caching for mobile version
- removed loading progress bar after data is loaded when using cached
data