update main.cpp to use csplashscreen