restructure code & add showWelcomeAnimation()