Added functional for splash screen