refactor splash screen