back button aware of location

added a way for the back button to know the current location so that we
can go up one level instead of all of them.