Storyboard Scene View situation

Imagine my problem as: Chapter - Subchapter - Topic hierarchy of a book. Each of those a separate class

When i am reading a topic i want to go back at subchapter and then to chapter.

If my code was organized like each chapter-subchapter-topic was a scene of storyboard everything would have been easier to follow up with the hierarchy, but here is my situation:

I have 4 classes where my problem stands : A & B & C & D

Class A (scene):

   Initialize 3 views (class top_view, class B, class bottom_view)

Class B (view):

   Its one view that changes its content to show chapters or subchapters with a back button.

   on clicking back button removes subchapter content and shows chapter content (in same group view)

Class C (scene):

  Initialize 3views (class D, class topic_view, class bottom_view)

Class D (view):

 Contains a back button, which when i press i want to go at subchapter_view

 (remember subchapter_view is  inside Class B).

 But as chapter/subchapter are one view and when i call the initialization method of that class in class A

 it shows me the chapter view , instead of subchapter

I would like to know how to understand that i am coming from Class D to Class A in order to show subchapters. Is there any way to save a value when i am at class C so i can ask for that value on class A before i initialize Class B

Hope somebody can help :slight_smile:

Thanks in advance

So i have 2 Scenes classes and 2 View(s) classes.

When i am at scene C i gotoScene(‘A’) on pressing back button that is inside Class D view. 

Scene A initialize class B, class B has 1 groupview and 2 subviews: B1 and B2 (shows B1 or B2 one at a time)

Initialization function calls view B1 of class B

But when i am on scene C and go back at scene A i want to call view B2 of class B and not initialize B1 again (as scene A does)

So i have 2 Scenes classes and 2 View(s) classes.

When i am at scene C i gotoScene(‘A’) on pressing back button that is inside Class D view. 

Scene A initialize class B, class B has 1 groupview and 2 subviews: B1 and B2 (shows B1 or B2 one at a time)

Initialization function calls view B1 of class B

But when i am on scene C and go back at scene A i want to call view B2 of class B and not initialize B1 again (as scene A does)