Created a general view model for a loading screen

- this will help reusing the loading screen for importing a project
- minor refactoring