make the splash screen not flashing using card layout