Fix issue where UI is blocked when fetching the data

- code cleanup
- Add splashscreen images
More code refactoring
Optimized code. Merged from Prashant
Optimize code