added new scene behaviour and transition scene logic to use reusable function