Basic setup of state structure and preloader graphic