Created API controller and loading screen