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 
Thanks in advance