add support for back button in shadow fragment handling