move code into scenes for transitions