Fixed function for enabling splashscreen