adding splash functinality