adding loading screen for switching between tasks