moved welcome message logic