Nested views and back button


Can someone help out. I have been trying by all means to get a back button to work on a nested sidemenu template but not getting it.
I have sidemenu template with home page, leftmenu list, list-item navigating to a first page, and first page navigating to second page. The problem i have is how to navigate back to first page from second page. Some advised i should follow a parent-child relationship, but the issue now is a parent-child-grand child and there aren’t any examples on this.
Kindly help.