added more scene transition logic