Solved fragment hide/show issue for single-pane layouts