added splash screen and fixed flag waving