Modify global-layer sample: Add loading screen